﻿using System;

namespace SharpSNS
{
    /// <summary>
    /// Error Codes 
    /// </summary>
    public enum ApiResponseCode
    {
        /// <summary>
        /// Success
        /// </summary>
        Success = 200,
        /// <summary>
        /// More authentication required
        /// </summary>
        MoreAuthenticationRequired = 330,
        /// <summary>
        /// Invalid request
        /// </summary>
        InvalidRequest = 400,
        /// <summary>
        /// Unauthorized
        /// </summary>
        Unauthorized = 401,
        /// <summary>
        /// Method not allowed
        /// </summary>
        MethodNotAllowed = 405,
        /// <summary>
        /// Request timed out
        /// </summary>
        RequestTimeout = 408,
        /// <summary>
        /// Source rate limit reached
        /// </summary>
        SourceRateLimitReached = 430,
        /// <summary>
        /// Invalid developer key
        /// </summary>
        InvalidKey = 440,
        /// <summary>
        /// Developer key usage limit reached
        /// </summary>
        KeyUsageLimitReached = 441,
        /// <summary>
        /// Invalid IP for key
        /// </summary>
        KeyInvalidIP = 442,
        /// <summary>
        /// Developer key used from unauthorized site
        /// </summary>
        KeyUsedFromUnauthorizedSite = 443,
        /// <summary>
        /// Missing required parameter
        /// </summary>
        MissingRequiredParameter = 460,
        /// <summary>
        /// Source required
        /// </summary>
        SourceRequired = 461,
        /// <summary>
        /// Parameter error
        /// </summary>
        ParameterError = 462,
        /// <summary>
        /// Generic server error
        /// </summary>
        GenericServerError = 500
    }
}
